package com.qing.springcloud.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

/**
 * @author caozhipeng
 * @date 2025/7/19
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/getName")
    public String getName(){
        return "Hello";
    }

    @RequestMapping("/getList")
    public List<String> getList(){
        return Arrays.asList("Hello","DDDD","CCCC");
    }
}
